<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
    <class name="cn.ffcs.product.model.ProductReference" table="T_BUSI_PRODUCT_REFERENCE">
        <comment>产品资料</comment>
        <id name="id" type="java.lang.Integer">
            <column name="ID" length="32" />
            <generator  class="cn.ffcs.util.hibernate.generator.MyGenerator">
				<param name="table">T_COMM_SEQUENCE</param>
				<param name="column">NEXT_VAL</param>
				<param name="sequence_column">NAME</param>
				<param name="sequence_name">SEQ_BUSI_PRODUCT_REFERENCE</param>
			</generator>
        </id>  
        <many-to-one name="product" column="product" class="cn.ffcs.product.model.Product" unique="true" lazy="false"/>
        <many-to-one name="referenceType" column="reference_type" class="cn.ffcs.system.dict.model.Dict" unique="true" lazy="false"/>
        <property name="title" type="java.lang.String">
            <column name="title" length="100">
            </column>
        </property>
        <property name="content" type="java.lang.String">
            <column name="content" length="300">
            </column>
        </property>
        <property name="keyword" type="java.lang.String">
            <column name="keyword" length="100">
            </column>
        </property>
        <property name="creator" type="java.lang.String">
            <column name="CREATOR" length="64" />
        </property>
        <property name="begin" type="timestamp">
            <column name="BEGIN" length="7" />
        </property>
        <property name="end" type="timestamp">
            <column name="END" length="7" />
        </property>

    </class>
</hibernate-mapping>
